package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏西西
 * Date: 2023-08-28
 * Time: 10:17
 */
public class ThreadDemo11 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() ->{
            for (int i = 0; i < 100000; i++) {

            }
        });
        System.out.println("start开始之前："+ t.getState());
        t.start();
        for (int i = 0; i < 1000; i++) {
            System.out.println("start中间状态"+ t.getState());
        }

        t.join();
        System.out.println("结束之后："+ t.getState());
    }
}
